package com.zjs.controller;

import com.zjs.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import pojo.BookVo;
import util.ResultStatus;

@RestController
public class BookController {
    @Autowired
    private BookService bookService;

    /**
     * ES同步列表
     * @param
     * @return
     */
    @PostMapping("eslist")
    public ResultStatus EsList(@RequestBody BookVo bookvo){
        return bookService.EsList(bookvo);
    }
}
